-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ES|QL: Fix generative tests #129717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES|QL: Fix generative tests #129717
Conversation
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
|
||
| if (previousOutput.size() > limit && output.size() != limit || defaultLimit && previousOutput.size() < output.size()) { | ||
| return new ValidationResult(false, "Expecting [" + limit + "] records, got [" + output.size() + "]"); | ||
| if (output.size() > limit) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, which queries weren't deterministic in the number of rows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the queries that have a very early LIMIT are very non-deterministic, eg.
FROM idx
| LIMIT 10
| WHERE <something>
| LIMIT 10
the WHERE condition receives very few (random) records, at every run I expect zero to ten (different) results.
This said, in the CI I found some very suspicious queries that I'm investigating now, but for the general case I don't think we can do better than this for now
Fixes: #129453